<!-- <!DOCTYPE  html > -->
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title> Informes institucionales</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">

	{% load staticfiles %}
	<link rel="stylesheet" href="{% static "css/spacelab.css" %}">
	{% load staticfiles %}
	<link rel="stylesheet" href="{% static "css/responsive.css" %}">
	{% load staticfiles %}
	<link rel="stylesheet" href="{% static "css/misestilos.css" %}">
</head>
<body>

	{% include "topmenu.html" %} <!-- Top menu -->

	<div class="container">
		<div class="row-fluid">

			{% include "sidebar.html" %} <!-- Side bar -->

			<div class="span9">
				<div class="page-header">
					<h4>Formulario Informes Institucionales</h4>
				</div>
				<div>
						{% if info_enviado == 'Guardado' %}
						<p>
						<h3>El formulario ha sido guardado</h3>
						</p>
						{% else %}
							{% if info_enviado == 'Editado' %}
							<p>
							<h3>El formulario ha sido editado</h3>
							</p>
							{% else %}
								{% if info_enviado == 'Nuevo' %}
								<form action="." method='post' enctype="multipart/form-data">
									{% csrf_token %}
									{{form.as_p}}
									<input type="hidden" value="{{ formulario_nro }}" name="id_formulario" />
									<input type="submit" value="Enviar"/>
									<input type="reset"  value="Limpiar"/>
									
								</form>
								{% else %}
								<p>
									<h3>Informe Institucional de: {{resultado1}}</h3>
								</p>
								<p>
									{{resultado2}}
								</p>
								{% endif %}
							{% endif %}		
						{% endif %}


					</div>
				</div>
			</div>

		{% include "footer.html" %} <!-- Footer -->

		</div> <!-- container -->

		<!-- JS files -->
		{% load staticfiles %} <script type="text/javascript" src="{% static "js/jquery.js" %}"></script>
		{% load staticfiles %} <script type="text/javascript" src="{% static "js/bootstrap.js" %}"></script>
		{% load staticfiles %} <script type="text/javascript" src="{% static "js/bootstrap-formhelpers-countries.js" %}"></script>
		{% load staticfiles %} <script type="text/javascript" src="{% static "js/bootstrap-formhelpers-countries-US.js" %}"></script>
	</body>
	</html>
